// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import path from 'path-browserify'
import Vue from 'vue'
import App from './App'
import router from './router'
// 全量引入UI组件库
import bkMagicVue from '@canway/cw-magic-vue'
import '@canway/cw-magic-vue/dist/bk-magic-vue.min.css'
import cwUserSelector from '@canway/cw-user-selector'
// 几何图
import * as Echarts from 'echarts'
import './utils/common.js'
// 统一样式引入
import './assets/index'
// 引入自定义方法
import Dire from './directive/index.js'
// 引入自定义组件
import Component from './components/index.js'
// vuex
import store from './store/index'
import 'jquery'
// 引入图片裁剪工具
// import {VueCropper} from 'vue-cropper'
// 公共方法
window.path = path

Vue.use(bkMagicVue)
Vue.use(cwUserSelector)
Vue.use(Echarts)
Vue.use(Dire)
Vue.use(Component)
Vue.prototype.$echarts = Echarts
const headTheme = 'light' // 选择 light 或 blue
Vue.prototype.headTheme = headTheme
// Vue.component('vue-cropper', VueCropper)

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: {
        App
    },
    data() {
        return {
            website: '我是全局变量'
        }
    },
    render: (h) => h(App),
    template: '<App/>'
})
